package com.example.administrator.androidros.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;


import com.example.administrator.androidros.R;
import com.example.administrator.androidros.base.BaseActivity;
import com.example.administrator.androidros.widget.CustomTipDialog;

import butterknife.BindView;
import butterknife.OnClick;

public class Main2Activity extends BaseActivity {
    private CustomTipDialog customTipDialog;
    private CustomTipDialog loadingProgress;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
//        setAllowFullScreen(true);
    }

    @Override
    protected void setContentView() {
        setContentView(R.layout.activity_main2);
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void onFailure(int requestCode, Object object) {

    }

    @Override
    protected void onSuccess(int requestCode, Object object) {

    }

//    @OnClick({R.id.bt, R.id.bt1})
    protected void BtOnClick(View view) {
//        if (view.getId() == R.id.bt) {
//        }
//
//        if (view.getId() == R.id.bt1) {
//            CustomCountDown countDownTimer=new CustomCountDown(10000,1000,bt1);
//            countDownTimer.start();
//            startTipDialog(CustomTipDialog.ICON_TYPE_SUCCESS,"操作成功",true);
//            new Handler().postDelayed(new Runnable() {
//                @Override
//                public void run() {
//                    stopTipDialog();
//                }
//            },1500);
//            showInformationDialog();
//        }
//        new CustomDialog.Builder(this)
//                .setTitle("这是标题a兄弟")
//                .setMessage("内容，小兄弟")
//                .setCancelable(true)
//                .setButton(DialogInterface.BUTTON_POSITIVE, "确定", new DialogInterface.OnClickListener() {
//                    @Override
//                    public void onClick(DialogInterface dialog, int which) {
//                        showToast("你点击了确定");
//                    }
//                })
////                .setButton(DialogInterface.BUTTON_NEGATIVE, "取消", new DialogInterface.OnClickListener() {
////                    @Override
////                    public void onClick(DialogInterface dialog, int which) {
////                        showToast("你点击了取消");
////                    }
////                })
//                .create()
//                .show();
    }

    @Override
    public void onBackPressed() {
        super.onBackPressed();
        if (loadingProgress != null && loadingProgress.isShowing()) {
            loadingProgress.dismiss();
        }
        loadingProgress = null;
    }
}
